13.11.2010, 14:55
Nice TUT.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == govmenu) { if(response) { if(listitem == 0) // Desert Eagle { GivePlayerWeapon(playerid, 24, 100); } if(listitem == 1) // Dodo { GivePlayerWeapon(playerid, 31, 500); } } return 1; } return 0; }
new Float:X, Float:Y, Float:Z, Float:Angle, pInt;
tim10000 Re: [TUT]How to create a vehicle dialog menu where to put: Code: new Float:X, Float:Y, Float:Z, Float:Angle, pInt; |
C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(113) : error 029: invalid expression, assumed zero C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(288) : error 017: undefined symbol "X" C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(289) : error 017: undefined symbol "Angle" C:\Users\tim\Documents\sa-mp server\gamemodes\new.pwn(290) : error 017: undefined symbol "pInt" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PutPlayerInVehicle(playerid,CreateVehicle(592,X,Y,Z,0,-1,-1,-1),0);
CreateVehicle(592, X+5, Y, Z+1, Angle, random(100), random(100), -1);
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(291) : error 035: argument type mismatch (argument 4) C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(437) : warning 217: loose indentation C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(440) : warning 225: unreachable code C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(440) : warning 217: loose indentation C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(443) : warning 217: loose indentation C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(443) : error 029: invalid expression, assumed zero C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(443) : error 004: function "OnPlayerClickPlayer" is not implemented C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(447) : error 030: compound statement not closed at the end of file (started at line 431)