if (strcmp("/stuff get", cmdtext, true, 10) == 0)
{
if (pInfo[playerid][job] == 1)
{
if(vehicleid == truck)
{
if(PlayerToPoint(50.0,playerid,-1872.7570,1417.2054,7.1801))
{
SendClientMessage(playerid,COLOR_OLIVE,"Fahre zum Roten Punkt und Tippe /deliver ein.");
SendClientMessage(playerid,COLOR_OLIVE,"Die Produkte haben dich 500 gekostet.");
SetPlayerCheckpoint(playerid,-1548.1746,124.9451,3.4374,5);
GivePlayerMoney(playerid,-500);
pInfo[playerid][truckprods] = 5;
return 1;
}
}
}
}
if (strcmp("/deliver", cmdtext, true, 10) == 0)
{
if (pInfo[playerid][truckprods] == 5)
{
if(vehicleid == truck)
{
if(PlayerToPoint(50.0,playerid,-1016.5441,-687.4995,32.0078))
{
SendClientMessage(playerid,COLOR_OLIVE,"Du hast 2,5k bekommen.");
SetPlayerCheckpoint(playerid,-1016.5441,-687.4995,32.00784,5);
GivePlayerMoney(playerid, 2500);
pInfo[playerid][truckprods] = 0;
}
}
}
return 1;
}
hab den error da..C:\Dokumente und Einstellungen\Marco & Stefan\Desktop\GTA-San\Scrpit dinger\versuch.pwn(434) : error 017: undefined symbol "vehicleid"
C:\Dokumente und Einstellungen\Marco & Stefan\Desktop\GTA-San\Scrpit dinger\versuch.pwn(453) : error 017: undefined symbol "vehicleid"
wei mach ich den weg??und noch was.. wie mach ich mehrere if befehle bei OnePlayerEnterVehicle? ?