31.10.2011, 04:34
Quote:
i suggest you work on your indentations:
Код:
if(dialogid == 2) { if(response) { switch(listitem) { case 0: { //Selected Item: "Las Venturas" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469) } case 1: { //Selected Item: "Los Santos" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469); } case 2: { //Selected Item: "San Fierro" SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484); } }//you missed closing the switch() return 1 } } ![]() oh, and as Stigg pointed to: have a look at https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint you also missed 1 parameter: most prolly the radius? |
Код:
C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(964) : warning 225: unreachable code C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(973) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(978) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(983) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(987) : error 001: expected token: ";", but found "}" C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(994) : error 030: compound statement not closed at the end of file (started at line 938) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.