03.07.2011, 23:57
LoL, aqui dб esses erros:
PHP код:
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "tmp"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "tmp"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "tmp"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 029: invalid expression, assumed zero
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 076: syntax error in the expression, or invalid function call
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 029: invalid expression, assumed zero
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error: 017: undefined symbol "idx"
pawn Код:
528 if(strcmp(cmdtext, "/kick", true) == 0)
529 {
530 if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, GOLD, "[ERRO] Vocк nгo й Administrador!");
531 tmp = strtok(cmdtext, idx);
532 if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /kick [ID] [MOTIVO]");
533 new id;
534 id = strval(tmp);
535 new length = strlen(cmdtext);
536 while ((idx < length) && (cmdtext[idx] <= ' '))
537 {
538 idx++;
539 }
540 new offset = idx;
541 new result[64];
542 while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
543 {
544 result[idx - offset] = cmdtext[idx];
545 idx++;
546 }
547 result[idx - offset] = EOS;
548 if(!strlen(result)) return SendClientMessage(playerid, -1, "USO: /kick [ID] [MOTIVO]");
549 if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "JOGADOR OFFLINE.");
550 new string[256], n[24], n2[24];
551 GetPlayerName(id, n, 24);
552 GetPlayerName(playerid, n2, 24);
553 format(string, 128, "Vocк kickou o jogador %s [ID: %d] | Motivo: %s.", n, id, result);
554 SendClientMessage(playerid, -1, string);
555 format(string, 128, "Vocк foi kickado pelo administrador %s [ID %d] | Motivo: %s.", n2, playerid, result);
556 SendClientMessage(id, -1, string);
557 Kick(id);
558 format(string, 128, "O ADMIN %s kickou o jogador %s | Motivo: %s.", n2, n, result);
559 SendClientMessageToAll(-1, string);
560 return 1;
561 }