SA-MP Forums Archive
errors, how to fix? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: errors, how to fix? (/showthread.php?tid=419609)



errors, how to fix? - Chris_Morrison - 01.03.2013

Lines:
pawn Код:
RemovePlayerAttachedObject(playerid, 0);3
    // rent
        if(GetPVarInt(playerid, "Renting") == 1)
The error:
pawn Код:
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\LSC\gamemodes\sgrp.pwn(4199 -- 4201) : warning 215: expression has no effect
C:\Documents and Settings\Administrator.WINXPSP3\щемзп дтбегд\сън\LSC\gamemodes\sgrp.pwn(4201) : error 001: expected token: ";", but found "if"
Thanks!


Re: errors, how to fix? - DaRk_RaiN - 01.03.2013

pawn Код:
RemovePlayerAttachedObject(playerid, 0);
// rent
if(GetPVarInt(playerid, "Renting") == 1)



Re: errors, how to fix? - Chris_Morrison - 01.03.2013

My biggest fail thanks mate


Re: errors, how to fix? - Goldino - 01.03.2013

[QUOTE=Chris_Morrison;2407504]Lines:
pawn Код:
RemovePlayerAttachedObject(playerid, 0);
    // rent
        if(GetPVarInt(playerid, "Renting") == 1));
Try that, if it doesn't work then try what is below


[QUOTE=Chris_Morrison;2407504]Lines:
pawn Код:
RemovePlayerAttachedObject(playerid, 0);
    // rent
        if(GetPVarInt(playerid, "Renting") == 1);



Re: errors, how to fix? - Tom Kingston - 01.03.2013

Whenever you're scripting, try keeping calm and slow speed bro, It'll help you a lot more then focusing and being fast.