22.08.2009, 13:12
Hi all..
This is the code..
And the error..
Can you help me?
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/prigione1", cmdtext, true, 10) == 0)
{
stato[playerid]="prigione1";
return 1;
}
if (strcmp("/prigione2", cmdtext, true, 10) == 0)
{
stato[playerid]="prigione2";
return 1;
}
if (strcmp("/base1", cmdtext, true, 10) == 0)
{
stato[playerid]="base1";
return 1;
}
if (strcmp("/base2", cmdtext, true, 10) == 0)
{
stato[playerid]="base2";
return 1;
}
return 0;
}
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(4 : error 006: must be assigned to an array
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(53) : error 006: must be assigned to an array
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(5 : error 006: must be assigned to an array
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(63) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
This is the code..
And the error..
Can you help me?
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/prigione1", cmdtext, true, 10) == 0)
{
stato[playerid]="prigione1";
return 1;
}
if (strcmp("/prigione2", cmdtext, true, 10) == 0)
{
stato[playerid]="prigione2";
return 1;
}
if (strcmp("/base1", cmdtext, true, 10) == 0)
{
stato[playerid]="base1";
return 1;
}
if (strcmp("/base2", cmdtext, true, 10) == 0)
{
stato[playerid]="base2";
return 1;
}
return 0;
}
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(4 : error 006: must be assigned to an array
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(53) : error 006: must be assigned to an array
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(5 : error 006: must be assigned to an array
C:\DOCUME~1\Gugli0\Desktop\ZOMBIE~1\FILTER~1\limit i.pwn(63) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.