C:\Users\Dusti\Desktop\SA-MP Server\gamemodes\selfmade.pwn(2043) : error 017: undefined symbol "id"
C:\Users\Dusti\Desktop\SA-MP Server\gamemodes\selfmade.pwn(2044) : error 017: undefined symbol "mysql_function"
C:\Users\Dusti\Desktop\SA-MP Server\gamemodes\selfmade.pwn(2044) : error 017: undefined symbol "dbhandle"
C:\Users\Dusti\Desktop\SA-MP Server\gamemodes\selfmade.pwn(2044) : error 029: invalid expression, assumed zero
C:\Users\Dusti\Desktop\SA-MP Server\gamemodes\selfmade.pwn(2044) : fatal error 107: too many error messages on one line
saveCarToDB(playerid,carid)
{
new query[128];
format(query,sizeof(query),"INSERT INTO autos (besitzer,model,x,y,z,r) VALUES ('%i','%i','%f,'%f','%f')",PlayerInfo[playerid][id],cInfo[carid][model],cInfo[carid][c_x],cInfo[carid][c_y],cInfo[carid][c_z],cInfo[carid][c_r]); //2043
mysql_function,query(dbhandle,query,false,"",""); //2044
return 1;
}
createPlayerCar(playerid,modelid,Float:x,Float:y,Float:z,Float:r)
{
for(new i=0; i<sizeof(cInfo); i++)
{
if(cInfo[i][id_x]!=0)continue;
GetPlayerName(playerid,cInfo[i][besitzer],MAX_PLAYER_NAME);
cInfo[i][c_x]=x;
cInfo[i][c_y]=y;
cInfo[i][c_z]=z;
cInfo[i][c_r]=r;
cInfo[i][model]=modelid;
cInfo[i][id_x] = CreateVehicle(modelid,x,y,z,r,-1,-1,-1);
new string[128];
format(string,sizeof(string),"[ADMINLOG]Das Fahrzeug [%i] wurde erstellt!",i);
SendClientMessage(playerid,DUNKELROT,string);
saveCarToDB(playerid,i);
return 1;
}
return 1;
}