Help Me Please [With Command Error]
#1

pawn Код:
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15278) : error 029: invalid expression, assumed zero
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15278) : error 001: expected token: ",", but found ";"
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15280) : error 029: invalid expression, assumed zero
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15280 -- 15281) : error 001: expected token: ",", but found ";"
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15282) : error 029: invalid expression, assumed zero
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15282 -- 15283) : error 001: expected token: ",", but found ";"
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15284) : error 029: invalid expression, assumed zero
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15284 -- 15285) : error 001: expected token: ",", but found ";"
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15286) : error 029: invalid expression, assumed zero
C:\Users\ADMIN\Desktop\Server 0.3 [2.0]\ser 0.3\gamemodes\larp.pwn(15286 -- 15287) : error 001: expected token: ",", but found ";"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

The Code

Код:
	  format(coordsstring, sizeof(coordsstring),"|____________________________________________| %s |____________________________________________|",name);
		SendClientMessage(playerid, COLOR_GREEN,coordsstring);
		format(coordsstring, sizeof(coordsstring),"[Account]: Level:[%d] RegularRank:[%s] Respect:[%d/%d] Age:[%d] Bank:[$%d]",level,drank,exp,expamount,age,account,);
		SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring, sizeof(coordsstring),"[General]: PlayingHours:[%d] Job:[%s] Phone:[%d]",ptime,jtext,pnumber,),
		SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring, sizeof(coordsstring),"[Criminal Record]: TimesArrested:[%d] Crimes:[%d]",arrests,crimes,),
		SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring, sizeof(coordsstring),"[Other]: Drugs:[%d] Materials:[%d] Sex:[%s]",drugs,mats,atext,),
		SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
		format(coordsstring, sizeof(coordsstring),"[Faction]: Team:[%s] Organisation:[%s] Rank:[%s]",ttext,ftext,rtext,),
		SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
Reply
#2

LOL fail, you forgot ; not , at the end of each formats I mean xD
Reply
#3

You're supposed to add a ';' (semi colon) after a bracket to terminate that line of execution, not a comma.

pawn Код:
format(coordsstring, sizeof(coordsstring),"[Account]: Level:[%d] RegularRank:[%s] Respect:[%d/%d] Age:[%d] Bank:[$%d]",level,drank,exp,expamount,age,account);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[General]: PlayingHours:[%d] Job:[%s] Phone:[%d]",ptime,jtext,pnumber,),
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Criminal Record]: TimesArrested:[%d] Crimes:[%d]",arrests,crimes);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Other]: Drugs:[%d] Materials:[%d] Sex:[%s]",drugs,mats,atext,),
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Faction]: Team:[%s] Organisation:[%s] Rank:[%s]",ttext,ftext,rtext);
After you have finished with the last variable within your format, you shouldn't add any other code except from ");", a bracket which after terminates that line of code.
Reply
#4

use this:
pawn Код:
format(coordsstring, sizeof(coordsstring),"|____________________________________________| %s |____________________________________________|",name);
        SendClientMessage(playerid, COLOR_GREEN,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Account]: Level:[%d] RegularRank:[%s] Respect:[%d/%d] Age:[%d] Bank:[$%d]",level,drank,exp,expamount,age,account);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[General]: PlayingHours:[%d] Job:[%s] Phone:[%d]",ptime,jtext,pnumber);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Criminal Record]: TimesArrested:[%d] Crimes:[%d]",arrests,crimes);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Other]: Drugs:[%d] Materials:[%d] Sex:[%s]",drugs,mats,atext);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Faction]: Team:[%s] Organisation:[%s] Rank:[%s]",ttext,ftext,rtext);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
Reply
#5

Quote:
Originally Posted by Kinto
Quote:
Originally Posted by ViruZZzZ_ChiLLL
LOL fail, you forgot " at the end of each sendclientmessages xD
lol
use this:
pawn Код:
format(coordsstring, sizeof(coordsstring),"|____________________________________________| %s |____________________________________________|",name);
        SendClientMessage(playerid, COLOR_GREEN,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Account]: Level:[%d] RegularRank:[%s] Respect:[%d/%d] Age:[%d] Bank:[$%d]",level,drank,exp,expamount,age,account);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[General]: PlayingHours:[%d] Job:[%s] Phone:[%d]",ptime,jtext,pnumber);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Criminal Record]: TimesArrested:[%d] Crimes:[%d]",arrests,crimes);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Other]: Drugs:[%d] Materials:[%d] Sex:[%s]",drugs,mats,atext);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring),"[Faction]: Team:[%s] Organisation:[%s] Rank:[%s]",ttext,ftext,rtext);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
I believe I edited my post now
Reply
#6

Thank You i just Missed The ; And "
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)