Sql create table

how to create table in sql # Creates a Simple User table # Uses an auto-incrementing primary key as userId CREATE TABLE user ( userId INT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(100), password VARCHAR(100) ) ENGINE=InnoDB; create table sql # Simple table describing a vehicle CREATE TABLE vehicle( # vehicleId: Unique ID for Primary […]

Sql create table Read More

Infinite loop lua

infinite loop lua function wait(seconds) — We need to create a wait function to slow down the loop. local start = os.time() — The loop will run so fast, that we need to lose it down. Otherwise, it’ll crash. repeat until os.time() > start + seconds end while true do — Create the infinite loop […]

Infinite loop lua Read More

Cami functions

CAMI functions CAMI.UsergroupInherits(usergroupName1 :: string, usergroupName2 :: string) :: bool CAMI.InheritanceRoot(usergroupName) :: string CAMI.RegisterUsergroup(usergroup :: CAMI_USERGROUP, source :: any) :: CAMI_USERGROUP CAMI.UnregisterUsergroup(name :: string, source :: any) :: bool CAMI.GetUsergroup(usergroupName :: string) :: CAMI_USERGROUP CAMI.RegisterPrivilege(privilege :: CAMI_PRIVILEGE) :: CAMI_PRIVILEGE CAMI.UnregisterPrivilege(name :: string) :: bool CAMI.GetPrivilege(name :: string) :: CAMI_PRIVILEGE CAMI.PlayerHasAccess(actor :: Player, privilege :: string, […]

Cami functions Read More

Postfix evaluation in c

Postfix evaluation in c //Assumption — primary operators ‘-,+,*,/,%’ operand — a single digit   #include<stdio.h>   #define MAX 20   typedef struct stack { int data[MAX]; int top; }stack;   void init(stack *); int empty(stack *); int full(stack *); int pop(stack *); void push(stack *,int); int evaluate(char x,int op1,int op2);   int main() { […]

Postfix evaluation in c Read More